fix ordering of ranges