fix query string error on friend method