Fixed incorrect console method calls that fails Google Chrome.