fixed issue in mapUtil.js