Nit: We're assigning null in other places to reset viewed path. Why not null here?