Fixed compile errors in Weights.java