Fixed bug with weekdaysInMonth that happened if the previous month ended on the requested weekday.