fixed one page gencount problem