fix scale error