decoder bug fixed