cipher init fix