Trying to resolve out of app context error