remove unneeded comma at end of offset list