Remove unused function defaultSmooth
Fix var name collision