Fix for duplicates when triggering from outside process