fixed a bug in Structure.evaluateIsWeighted