Control of metal option in CASTEP from perl script

I am currently developing a small perl script for

performing some geometry optimizations with

CASTEP. The problem I am facing now is to

uncheck the metal option of the CASTEP module.

I have tried to check the FixOccupancy option

(which is unchecked when metal is checked)

through the settings of the Run function, but the

castep.param file still says "fix_occupancy : false"

Any help will be welcome.

Jose.