Fix for older Ruby