Build Merge Type section - added better error handling