Added patch as is from MAHOUT-1193