fix problem with logout and path