You were probably trying to address the component before it had initialized. Timeline code executes first, then any clips/components after that. Usually waiting one frame allows everything to fully initialize.