bug fix: ensure upgrade is fired when inserting children