fix log issue