Fixed the log problem