console log error fixes