Yes this is a bug, i tried doing it in various ways and its bugged in multi as well.
I recommend just cheating the whole anvil from gamemode creative and throwing away the 2 anvil pieces and 1 borax.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.