fixed some console errors