Fixed Off-By-One bug in LS schedule