Corrected bug in the order of z channels