Fix a problem with res
Add ctx in provide
1.0.27