fixing service type hide function