Your code looks good.
You may have some more JavaScript code that is making some confict. Try changing the parameters id
In the button
data-target="#myModal"
to
data-target="#myModal-custom"
And the modal window id="myModal"
to id="myModal-custom"
Please read the official documentation of Bootstrap.