fix bug in private channels authentication