fix update/create selection logic in save method