BUG: fix the bug when debug_mode is on