fix faulty redirect