Fix console check.