fix scale factors