undefined variable & wrong service name