fixed the log issue