Fix z-index for multiple modals. Fix #1293