Solve file problems