fix design encoding for mode 2