fix stupid bug with socket