Revert component.py to lost changes