Correct two coding errors