#459 #297 fix contents insertion in sections