Fix errors for console