Fix for hDebug