fix modal's bug