Fixed minor scaling bug