Fix bugg on agenda view