fixed: clear up old statelist when adding new prefixes

if not, the statelist contains duplicates. closes issue #158