sweet code formatting
fix a bug in child_removed listener