fix modal issue