fix cipher order