Fixed multipage bug