Fix so res is passed to .end