Redirect error fix.

- Changed if statement.