Fix slight encryption bug