fix duplicate delete bug when models not yet saved to server