fix bug where route vars fail to return