fixed opening file