Fixed self-destruct bug in TDM