Fixed bug in the auto-generation of prefixes.