Fix adding empty child in widget