Fix Ruby warning