Bug: deleteRecords method does not remove all records