Correctly remove them from the table before updating it, otherwise the count will be off.