Fixed bug in GetStructureByHandle()