fix scale errors