Fixes in filtering teams