some bugfixes for setting name

Signed-off-by: Armin Wieser <armin.wieser@gmail.com>