fix getting group query on topic page