fix endless recursion in layouting MergeScript