Fixes typo when assigning weights from object args