solve a couple console errors