fixed double deletion