Fixed console errors in chrome