Fixes to model html export