Fix a bug to get rid of invalid values during async calls in discovery page.