Proto 2000 SD45 repair

Oh well here’s a minor problem I just discovered today. Looks like the drive shaft has loosened up from the flywheel. The other end that is connected to the truck turns fine when turned by hand. However It does not hold into the flywheel. Is this repairable (CA glue) or should this be replaced? Any suggestions would be appreciated.