fixed console errors.