Fix returning file