Fixed ordering of node addition when object detected