Fixed autogeneration of default entityID

Resolves #83