Fixed typo that caused reveals to remain open when linked to another reveal

how to reproduce (this works on foundations site as well) click through a chained set of modals and all previous modals except the last will still have display block