fixed the maximum depth problem in addsnv.py