Fix variable name when checking codes validity