Fixed bug: Lower bound index out of range.
Remove uneeded checks.