Fix errors printing