fixed scaling calculation for ecco