Move setTag to the end, in case of clone.