fix the bug: fail to show group profile if not logged in