Fix a indexing bug with change_owner