NXP-12258: fix dirty detection