fix bug that prevented analyze-ns to cache analysis results