Fix errors in framework.