fix buffer-string call error