fix bug in log newName