Fix opt ranges type