Fixes bug while traversing components' collection during update phase