Fix the ruby mode hook