Bug fix with the api.