Fixes to tissue modeling and gapfilling