fixed bug in matchTriggerObject function