Fixing error using y cell dimension instead of z at RGrid->clone() method