fixed bug with refusing to delete all records