patched sampler Ajax bug