Fixes bug where dirty flag was set to added row and would trigger it to be processed as updated.