bug in dbg print