fix ruby script