fix the error when not login