Fix major bug making mapping loading crash