small fix to redirect