Fixed redirection when there are multiple instances of module in page.