fixed a bug with checking all children/grandchildren of the trap