scrutinizer issues fix

Signed-off-by: Chirayu Chiripal <chirayu.chiripal@gmail.com>
fix: error in export with option view output as text

Signed-off-by: Chirayu Chiripal <chirayu.chiripal@gmail.com>
Merge pull request #1239 from D-storm/scrutinizer

scrutinizer issues fix
Merge pull request #1238 from D-storm/export-back-link

fix: error in export with option view output as text