fixed debug error