Fixing redirect bug

Redirect bug caused by introduction on plugins