Fixed issue when getting username