fix for first insertion sparse space extrema value issues
Merge origin/master