Fix bug where lots of commas where output. For some reason only in IE.