Fix issue with trailing comma in IE