China to rewrite history to correct mistakes of Mao era