Fix trigger compilation