fixed display of events which go through midnight.