fixed issue in rendering map