fixed deleting when textfield is empty