fixing redirect issue building module