Use dirty attributes when updating