Fixed config check