fixed showpage bug