Fix some ranges