fix security.tdm update and decrease bug