Fixing unwanting creation of files