fix memory error with Page and Outline