Fixed a bug in cipher composition