fix bug step out

fix bug where step out does not function correct for compartments in
groups