Correct some bugs withe ics file