Fixed an opening saved diagram bug