fix fetching params