bug4578: fix some debug refs