Fixed a bug in the calculation of LS