fixed error while deleting an inexistent file