fixed log issue