fix broken example due to amidi buffering