Fix issue with rounding down when calculating the resolutions.