fixed bug from last commit. IE9+