Unable to update membership plugin on staging site

I'm trying to update the membership plugin on staging.ior-institute.org but on this page:-
https://staging.ior-institute.org/wp-admin/admin.php?page=wpmudev-updates

The autoupdate button directs to the live site: https://www.ior-institute.org/wp-admin/update.php?action=upgrade-plugin&plugin=membership%2Fmembershippremium.php

And it just says are you sure you want to do this with no other options

I've run search and replace on the db for www to staging..

Even if I remove wp-content/plugins/membership from the staging site the plugin is still listed. It appears to be using data from the live site.