fix ref
Changed trigger to before, the default