API: Fix bug in committee filtering