fix handling of orientation change: restore uri