fixed broken diagram view