fixing broken weights due to typo weights instead of weight