fix securitykey factory method call