fixing bugs with trigger object filling