Fixed bug from unused scale variable in Euclidean
Fix various unused variables in nn