fixed generation for elements ids