fix sweet-alert extra length bug