Fixed console errors.