Fix Gdt code