fix problem with console variable in IE