Fixed a bug with popovers inside modals.