fixed debug bug