Fixed parameters not passing correctly to the api