fix the bug of writing CorrPot