Ruby example bug fixed