Updating for bug fix on refresh

Fixes a bug when you refresh the page after DM changes URL