fixed bug where triggers were not matched