one more time, I think there was an error iterating over the pieces when encrypting them