fixed the modal error