NearMi bug fix LAGI