fix: solved sweetAlert bug