Fixed View hierarchy problems when training.