fix a bug setting name to undefined