Fixing some bugs with showing last connection