Fix bug when PUT causes additional changes in model