fix page rendering