Fix bug when no attribute "service" is found.