fix markup showing through to final page