Fixed bug with LS.