Fixing bug with route paths