Fix non-uniform resolution values formulas