Fixed wrongly calling IDTFlush()