[BUGFIX]

Wrong check for dirty object

Related: #60508