fix(modal): fixed bugs