Fix legend under ie10 and ie11