Fix bug when refresh all components