fixed declaration bug for nvg removal