LPS-32708 1.) Fix setting wrong index for sb 2.) If statement not needed as we already know at least one list is not empty 3.) Fix typo
LPS-32708 Source formatting