fixed bug with multiple services