Fix above-ground generation bugs.