fixed redirect bugs