Fix bug of prev/next svg switcher