fixed a bugs in all samples after new release Ruby SDK