If you are fitting it like that of course it will come off it needs a nut to hold it on and I'm not seeing any thread there. Sprockets are either splined,tapered or keyed and held in place with a nut as per the exploded drawing