fix a nasty bug with upgrades_ep_fast