Fix console logging