Use isgen variable in both places.

Sigh.