fixed infinite loop if requested service name is already in use