fix definition when the rubie is a Hash