Fix type of main service