Fix isdirty
Fix isdirty