add hack fix for IE8 infinite loop