fixed endless cycle on diagram open