Fix bug related to all day events