fixed debug information outputting