fixed bug in newVisState