fix issue where default month would be selected instead of January because January is represented as 0