fixed debug console errors