Fixed security context duplication problem.