Fixed a z-index issue while inside modals