Why does this get set to `null` here?