fixed a problem with redirect page