fixed segfault in gate-analyzer