fixed issue with logout