fixed a bug where setting the channel dimension would set the z dimension instead