fixed bug with LS not working right