Fixing ics import.
Removing flush();
Merge pull request #745 from ngodfraind/bugfix

Fixing ics import.