fixed automatic label generation
fixed a bug that prevented unique keys update