console errors fixed