fixed wrong redirect