fix bug that barfed if not logged in