Fix errors during clean