Fix a small bug in calc_x_3s.
Merge branch 'master' into logging
Small fix for logging call.