catch ret None issue