fix typo with weights