Corrected i_alternate, fixes issue #171