fix map loading