fix for unreliable redirect-to