fixed debug output error