From the stack trace it looks as if you’re trying to use a month that’s not between 1 and 12 in your Tick function.