fix end page