Fix a bug with ruby methods