Fixed issue #211: a bug which prevented filtering when joining a group