fix scaling factor