Fix errors in code.