Fixed some errors

No errors in the console now