fixed extra socket ref