Fixed modals to be in foreach