make sure children are properly layouted