fix scale problems when aspect ratio is set