Fix #319 (user not-logged in error)