Fix repeat mode, fix saving play count for songs with old metadata