fixed bug with incorrect encryption order