Hello,
Check you write instruction.
In most software drivers, a register write is implemented as a read-modify-write (RMW) sequence.
If the datasheet specifies that reading MODE clears LPOOF/DFS, then the flags may already be cleared during the read phase. The subsequent write merely creates the impression that the write operation caused the clearing.
Best regards,
Peter