fixed filtering issue with subteam parents query