fixed IE8 error with class - close #491