Fixed the type of a buffer string