Fix writing page style.