fix abort of non file