fixed config check