fixed bug in deleting places