Fixed daily history bug