Get rid of trash
Fix startup crash when saving with currentIndex = −1