remove instance in clear method of ComponentLoader