Error correction in readDebug() return value