encryption bug fixed