[Feature] Fixed console errors.

Little fixes with console errors. Would be helpful for others. Really annoying errors.