Fix mink context behavior