fix conditional for debug option