Modal content shows in background

When I am go from model to another page then modal content shows in background in the navigated page.