Fixed potemtial crash in t3d 2.0