fix component bug