fixed more errors on console