Attempt to fix indexing a nil value.