other data is corrupted when i try to update 1 data. the selected data is updated while the other is corrupted using the function updateRec