fixed the agenda page crash