fixed connection problem on line 338