Can't respawn an actor after destroying it from array

But it doesn’t let me add back those two walls to change their colour again. Is it something wrong with my other scripting in the pics I attached?
Thanks for the help!