fix the a bug about LogName