fixed trigger deletion