Fix the error that can not delete all