fix sample triggering