Fixed bug when adding components after ScriptComponent.