Fixes bug for PUT request when updated values were saved as new entries.