fixed: clear up old statelist when adding new visual paths

if not, the statelist contains duplicates
Merge pull request #161 from notspiff/fix_multiple_dirs

fixed: clear up old statelist when adding new visual paths