fix problem occurring in first connection
Merge pull request #18 from stephaniefaureadfab/develop

fix problem occurring in first connection