fix bug of decode