Opening saved diagram bug fix