When multiple modals are open, clicking outside only closes 1