Avoid photoshop bug. It did not work well if selecting layerSet.