Fixed a crash when cleaning name.