Fixed problem with the secret key not being initialized properly.