fixet file check before delet