Fix exception on invalid service