fixes typo and unused variables
Merge pull request #2370 from ilya-lavrenov:cuda_nlm_typo