Fix console access for IE