fixed a bug in updateg that premuted left and right intesect points (issue #5)