fixing ruby mode