fix bug with part mode decode