Fixed encryption to not enable twice