Fix ruby deprecation