Fix ground generation bug