bug fix missing variants on calculating weight