Fixed console errors