apply fixes to page rendering