prevent from inserting null values into caches
worked on undoing portions of polylines