Fix member filtering when custom slugs are in use.

See #43.