Fixed bug with nextPath in router