Fix the master detail export.