fixed bad logic in config
(#401)