fix Tscratch buffer template loading