Fix dependency on console