On a fresh install of Raspbian/Raspberry Pi OS the pullups set do not take effect until the pi is rebooted. There is likely a way to fix this - investigate and resolve if possible :-)