scaling bug fixed