fixed uninitialized variables
Merge pull request #716 from argiro/osxfix

fixed uninitialized variables