fixed a nasty bug in the handling of "local_name" when setting the