Handle full day event and fixed some bugs.