Fixed behavior for localname