fixed another null pointer due to bounds issue in a list