smSubmit fixed replaceIfpresent