fixed type error (string instead of float) with scaling factors