Fixed some dumb problems in the homogeneous code that I missed before
somehow.