Fix gen map grid bug @lifulong