Fixed days history bug