bug with deleting fixed