Staging site become primary site. Not even backup restoration solves the problem.

We created a staging site for a plugin conflict test and it made the main site send to the staging site, restored a backup and it worked for a few minutes then started to send to staging site again, can you help me?