fixed bug in update exception that wouldnt work correctly with ids