Fix load_components bug.