1 bit encoding fix