geometry check before discretization improved
local values refresh fixed
fixed refresh of local values