Bug fix: the mask wasn’t being cleared if it only contained components