fix same issue in api.go