MK2 Belt moves outward off rear pulley

The belt kept pushing outside and pushing the flange off the rear pulley. I considered getting it welded on but instead I secured it using JB weld epoxy and that seems to be working. If it holds securely I think I’m in good shape, if it doesn’t I’ll see if I can get a welder to secure it.