fix selector id gen