add ie8 compatability; fix error page not loading locals problem;