fix bug with service status checking