Assign explicit styles for dups and fix error in cleaning up layouts