Correct change detection in related entity