Fixed some console errors