Fixes some display stuff and fixes one socket function