Fixed list out of range bug.