Fix notice with chDate bad index