Moved apply_filters outside the foreach loop. Duh.