fixed appendbuffer examples