fix a bug
fix a bug with ruby demo