Avoid double check on the configuration.

Referencing problem #454.
I have corrected the "if" as stof mentionned.