fixing bugs with randomSVM