Bug fix: if path in DB is missing from preference file. numer was not being incremented each iteration(?).