fixed actual problem in group collapse, which was NaNs