Fixed the ruby script