fix logging statements in IE