fixes to spark and mahout ssvd