Fix persisting selected ids to server