Bug fix due to isDirty being incorrectly set.