Fixed log file persisting