Fixed Generate Charts for ie, chrome