Fixed the not init agents in the tree group view. Ticket: #1584