Bug on demo fixed so correctly child is selected on callback