fix problem when log_messages.txt does not exist