Correct width and height values.