Fix undefined debug helper bug