avoid exception due to console miss on IE 8