fix create_scale error