fixed delete bug where it didnt throw exception