fix bug in create service from flow