Fixed bug where name will not be displayed if login shell