fix CPU buffer problem.