fixed erroneous redirect