Fix some console errors and warnings
Remove dupe line