updateRecord function fixed

add the tombstone mark