Using File.createTempFile may cause error