fix build error when ENABLE_DEBUG is defined

fix a compile error when ENABLE_DEBUG macro is defined.