Fixes the build and upgrades the locked gems