Bug fix - wrong template parameter in buffer algorithm