makes DashHandler.getNext use local index instead of defined in the class