I noticed the error while I was testing the code too. I was thinking about checking a variable for which set of models was displayed and only change models if the value didn't equal the displayed models' value. But since you are using panel buttons, I would deactivate the button upon spawning so the user could not respawn them again causing an error.