fixing incorrect redirect