fix to redirect