Fix page layouts and text formats