fixed ruby mode