Ugly fix to custom predefined date range active class setter.