fixed redirect exception