fixed service and endpoint creation issue