scaling bug