Fixed corruption of TSRM id