fix service generation