fixes redirect