object: Fix creation of default name