fix for when a transect intersects a masked region in latgrid
bug fixes