fixed weight type from int to real