fixes ranges