Some fixes and generate *.ics.