Program crash then first child is element fixed