Fix nested before filters in groups.