Fix typo clearing buffer.