The cause is likely a failed seal. Beyond the obvious, you may have a damaged sealing surface on the output flange that prevents the seal from keeping the fluid in. Also, the nut that holds the flange on must have thread sealer on it to prevent leaks. Did you use a sealer when you reinstalled the flange?