fixed 'component name is empty' bug