Bug of range of dates