add bug fix for ie8
fix bugs.