Fixing wrong variable mounted to the routes class