fix warning with thumb weight calculation