Fixed a bad reference to the app request_context