Fix ruby script