Fix a small bug when opening files