fix segfault in q2t