Fixed chechDirty issue