kludge fix for fitted values, n.data.gen == 1 was causing problems