Fix console invocation error