fix some debug output