Fixed to work with Ruby19