Bugfix for deleting entries