NvDsAnalytics metadata doesn't get displayed in the OSD

This seems very similar to the issue I am facing with Python: Can't see NvDsAnalytics ROI drawn on the image - #2 by mfoglio