fix component bug.