Getting health check Critical error instead of Warning