fix err if redirects exists