fix IE errors with extra , at end of structures