ck--/ann#470 make sure the selection is restored after error