Bug found when adding components to entities