fixed the error that prevent the page from redirecting
merging with Sam