Bugfix: ruby code