Ensure web.C context is set properly