troubleshooting failure resume on a non object