Fixed bugs in customizable LS length.