ruby: set min/ max to fix compile