bug: invalid first day of month