fix bugs using component framework