fix the unexpected delete