Setting id to a better default value if none exists