fix incorrect empty week when the end of month is in Sunday