Manage indexes when the parent change