Fixed map loading from files