fix bug in all services check