casted scale to float, now it works properly