gdb debug is wrong