small but important bug fixes for sampler and flanger