Add missing end for params filter in engine