fix statistics enable_debug()