fix ruby depcrecation warning