diff --git a/apachesolr.index.inc b/apachesolr.index.inc
index b3042cc..e0f832b 100644
--- a/apachesolr.index.inc
+++ b/apachesolr.index.inc
@@ -374,7 +374,7 @@ function apachesolr_index_get_entities_to_index($env_id, $entity_type, $limit) {
     }
 
     // Delete the entity from our index if the status callback returns 0
-    if ($status == 1) {
+    if ($status == TRUE) {
       $rows[] = $record;
     }
     else {
diff --git a/apachesolr.module b/apachesolr.module
index 34dab84..3363a0e 100644
--- a/apachesolr.module
+++ b/apachesolr.module
@@ -1864,7 +1864,7 @@ function apachesolr_entity_update($entity, $type) {
 
     // Delete the entity from our index if the status callback returns FALSE
     if ($status == FALSE) {
-      return apachesolr_entity_delete($entity, $type);
+      return apachesolr_entity_delete($id, $type);
     }
 
     $indexer_table = apachesolr_get_indexer_table($type);
