Fix incompatibility between Ruby versions.