fix error in console