Check for id change