bug fixed in get function of api