Fix off-by-one making rescanfinished notification.

Fixes #150.

ok @davecgh