next coords bugfix

range needed to be to -1 not 0