Fixed router helper undefined variable