fix logout route attachment