fix the spring security context