Use updateMonthData also in the initialization

This also fixed a bug: the length of the month was not set.