fix modal duplication bug