fixed console errors