missed a spot to reset write buffer position