fix bug with signout. fixes #16