fixed debug issue