Fix to the api