fix for ie

now work in ie 9+