Fixes user redirect