Update MiscUtils.java

fixed weighting (maybe?)