Fix ruby scripting.