fix console log error