fixed weighted ls bugs: