Ensuring that range is set when changed.