fix component initialization