Fixed errors not being logged in the console