prog encoding fix