fix a bug in healthCheck