always make sure there's a valid selection when round-tripping code.