fixed scrutinizer issues

Signed-off-by: Chirayu Chiripal <chirayu.chiripal@gmail.com>