Fix set_triggers method definition (was missing an end)