Corrected trigger element for beforeFilter