Dec29

@leapfrog-dipendra  @adhpawal  @bhuwang  @anishmanandhar  @Satish-Gupta  @nerisa  @utsabneupane 
Initialise i = 0; 
What if min variable is not set, this will cause exception