fix rescanning and remember root
Merge pull request #24 from jimbojsb/gh-24

Status is wrong after rescan