This avoids the children to be drawn out of place when a mode transition is triggered while a child transition was ongoing.