Fix sign error in default constants
Fix sign error in computation of w