fixed index call in getRoute