Fix the keyStore initialization problem