Corrected the length of the IV for private key encryption
Sometimes, bugs could cause the private key file to be corrupted, which should not occur again.