Fix list of legal and illegal codes.