Fixed buffer problem.