fixes a bug with names creation