fix in logging