bugFix mapFactory