Fixes a bug in the display when the displayed events span more than one month