Fix bug on false weight constraints.