fix: change where nlmeans check is made