fixed ifdebug