Why doesn't the icon change everywhere?

This works, but oddly this script makes it so only me with the admin account can see the topic with a solved reply, any other users are unable to see it.