fix ruby script.