fixed double delete error