[INTERNAL] writeDebug fixed