Fixed checking for the wrong config value