fix the dist buf