Bug fix for mapInit.