Buggy dispersion correction setup for CASTEP

I had find time to reproduce the bug in CASTEP dispersion correction reported in another question. Reproduction:

Set CASTEP calculation (GG PBE) …

Enable dispersion correction and set MBD …

use Files -> Save Files to create CASTEP fiels without lauchnig

Open the .param file

The .parma file will contain TS dispersion correction instead the selected MBD

The buggi state is illustrated on screenshot in attachment.