Fixed some codelists bugs.