fix segfault if quantizer is on