Simplified some code.
Fixed "show previous geometry" feature when prev_geom was null.