Restore selection on form error