reset st_commits before setting new value to prevent error when old st_commits is broken