Why did my casting deactivate when I made changes to it?