Fixes redirect exceptions in setup