Fix rescanLibrary