fix crash with timingdiagram

fix issue #122