fixed redirect handling