Fixed a z-index issue while inside modals

The parents cycle took the parent with z-index = '0', breaking everything