fixed the problem where the modals were'nt closing after clicking the next button (the answer modals)