Fixed a bug that caused a wrong value for timeSelection when using "months"