Change 'weights:' to 'weight:'

The option name is :weight without the -s. Throwing an error / a warning for unknown options might also be a good idea for the future.