Fix ICS format bugs