fix "set_weight" command