fixed loading state in ComponentLoader