Fix redirect errors in realtime script.