Fixed small bug where recurring events weren't calculated correctly