Apply masks before history (clone)