Fixing IE-8 bugs