Scaling data calculation bug fixed