Attempt to workaround trigger api change for backward compatibility