Changed path weight back to an int.